package com.project.easy.common.framework.auth.dto;

import  com.project.easy.common.util.dto.UserInfo;

import java.io.Serializable;
import java.util.Date;

/**
 * @author GreatorMan.cool
 * @copyright: Copyright (c) 2020
 * @company: 扬起科技有限公司
 * @date 2021/11/1 21:12
 * @description: Token上下文
 */
public class TokenContext implements Serializable {
    /**
     * TOKEN 生成上下文
     * @param userInfo 用户信息
     */
    public TokenContext(UserInfo userInfo) {
        this.userInfo = userInfo;
    }
    /**
     * 用户信息
     */
    private UserInfo userInfo;
    /**
     * TOKEN 信息
     */
    private String token;
    /**
     * 根据RefreshToken
     */
    private String refreshToken;

    private Date expireTime;

    public Date getExpireTime() {
        return expireTime;
    }

    public void setExpireTime(Date expireTime) {
        this.expireTime = expireTime;
    }

    public UserInfo getUserInfo() {
        return userInfo;
    }

    public void setUserInfo(UserInfo userInfo) {
        this.userInfo = userInfo;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getRefreshToken() {
        return refreshToken;
    }

    public void setRefreshToken(String refreshToken) {
        this.refreshToken = refreshToken;
    }
}
